<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合并两个 object 的键值对</title>
</head>
<body>
    <script>
        var arr1={
            age:'找到',
        }
        var arr2={
            name:'聊聊天'
        }
        var num={}
        Object.assign(num,arr1,arr2,)
        console.log(num)
    </script>
</body>
</html>